<!DOCTYPE html>
<html lang="en" xmlns:sec="http://wwww.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>欢迎<span sec:authentication="name"></span>;登录成功！！<a href="/toMain1">跳转</a></h1>
密码：<span sec:authentication="credentials">密码</span>
权限和角色:<span sec:authentication="authorities">权限和角色</span>
<br/>
<a href="/logout">退出登录</a>
</body>
</html>